import { Module } from '@nestjs/common';
import { UserService } from './user.service';
import { MongooseModule } from '@nestjs/mongoose';
import { UserSchema } from './user.schema';

@Module({
    imports: [
        MongooseModule.forFeature([
            { name: 'User', schema: UserSchema, collection: 'user'}
        ])
    ],
    providers: [UserService],
    exports: [UserService]
})
export class UserModule {
}
